package org.rency.ues.common.model;

import org.rency.ues.common.enums.EncryptType;

import java.util.ArrayList;
import java.util.List;

/**
 * rest请求体
 *
 * @author: Created by user_rcy@163.com on 2016/8/9.
 * @version: V1.0.0
 * @since JDK 1.8
 */
public class TransferBody {

    private UesCredentials credentials;

    private List<EncryptItem> enItems;

    private String serialNo;

    private EncryptType encryptType;

    private List<String> tickets;

    public UesCredentials getCredentials() {
        return credentials;
    }

    public void setCredentials(UesCredentials credentials) {
        this.credentials = credentials;
    }

    public List<EncryptItem> getEnItems() {
        return enItems;
    }

    public void setEnItems(List<EncryptItem> enItems) {
        this.enItems = enItems;
    }

    public void addEnItem(EncryptItem enItem) {
        if(this.enItems == null){
            this.enItems = new ArrayList<EncryptItem>();
        }
        this.enItems.add(enItem);
    }

    public String getSerialNo() {
        return serialNo;
    }

    public void setSerialNo(String serialNo) {
        this.serialNo = serialNo;
    }

    public EncryptType getEncryptType() {
        return encryptType;
    }

    public void setEncryptType(EncryptType encryptType) {
        this.encryptType = encryptType;
    }

    public List<String> getTickets() {
        return tickets;
    }

    public void setTickets(List<String> tickets) {
        this.tickets = tickets;
    }

    public void addTicket(String ticket) {
        if(this.tickets == null){
            this.tickets = new ArrayList<String>();
        }
        this.tickets.add(ticket);
    }

}
